Skip to content

feat(boto3): Add SNS extension - #8142

Open
pabloDeputter wants to merge 6 commits into
pablo/boto3-add-sqs-extensionfrom
pablo/boto3-add-sns-extension
Open

pabloDeputter wants to merge 6 commits into
pablo/boto3-add-sqs-extensionfrom
pablo/boto3-add-sns-extension

Conversation

@pabloDeputter

Copy link
Copy Markdown
Contributor

Description

Adds the SNS extension to the boto3 integration, now SNS Publish and PublishBatch become queue.publish spans so they show up in the Queues insight; all other operations stay on rpc:

  • Publish, PublishBatch: queue.publish, kind producer (default is client), named send <topic>

Adds the following attributes:

  • messaging.system (aws.sns), messaging.operation.type (send) and messaging.operation.name (publish) on the publish APIs (all from OTel)
  • messaging.batch.message_count on PublishBatch, messaging.message.id on Publish
  • aws.sns.topic.arn and messaging.destination.name (topic name) on every API with TopicArn, ResourceArn or a topic TargetArn; destination name also from CreateTopic's Name

Other changes:

  • PhoneNumber and platform-endpoint TargetArn publishes get messaging.destination.name=[Filtered] (send [Filtered])

Issues

Resolves #7573 & PY-2804

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 58190 passed | ⏭️ 3014 skipped | Total: 61204 | Pass Rate: 95.08% | Execution Time: 158m 9s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -83473
Passed Tests 📉 -79031
Failed Tests —
Skipped Tests 📉 -4442

All tests are passing successfully.

✅ Patch coverage is 100.00% (51 of 51 changed executable lines covered; target 80%).
Project statement coverage is 90.40% (up 0.09 percentage points from base (f6c8099) to head (0cb573d)).

Changed files with executable lines (2)
File Patch coverage Changed executable lines
sentry_sdk/consts.py 100.00% 2/2 covered
sentry_sdk/integrations/boto3/_services/sns.py 100.00% 49/49 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8142       +/-##
==========================================
+ Coverage    90.31%    90.40%    +0.09%
==========================================
  Files          203       199        -4
  Tracked lines     26933     21406     -5527
  Branches     10058      7428     -2630
==========================================
- Hits         24321     19350     -4971
+ Misses        2612      2056      -556
+ Partials      1518      1234      -284

Generated by Coverage Action

@pabloDeputter
pabloDeputter marked this pull request as ready for review October 28, 2026 15:05
@pabloDeputter
pabloDeputter requested a review from a team as a code owner October 28, 2026 15:05
…-extension

Co-Authored-By: Johannes Daxböck <114897+dingsdax@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant